package com.sunkingdom.qq.user.service.impl;

import java.util.List;

import com.sunkingdom.qq.user.dao.IUserDao;
import com.sunkingdom.qq.user.entity.User;
import com.sunkingdom.qq.user.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private IUserDao userDao;
	
	public User getUserById(Long userId) {
		// TODO Auto-generated method stub

		return null;
	}

	public void addUser(User user) {
		// TODO Auto-generated method stub

	}

	public void deleteUserById(Long userId) {
		// TODO Auto-generated method stub

	}

	public void modifyUser(User user) {
		// TODO Auto-generated method stub

	}

	@Cacheable(value="UserCache",key="'listUsers'")  
	public List<User> listUsers() {
		return userDao.selectUser();
	}

}
